﻿/************************************************************************
* Copyright (c) 2018 All Rights Reserved.
* 命名空间：ZTService.WCF
* 文件名：WcfEngine
* 创建人：David Rodríguez
* 创建时间：2018/7/30 星期一 14:27:20
* 描述： Wcf服务启动器
*************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using DavidHelper;

namespace ZTService.WCF
{
    public class WcfEngine
    {
        public static ServiceHost host;

        public static void Start()
        {
            host = new ServiceHost(typeof(WcfService));
            host.Open();
        }

        public static void Stop()
        {
            host.Close();
        }
    }
}